import Mock from 'mockjs'

const data = Mock.mock({
    'data': [
        {
            code: '200',
            message: '请求宫格成功',
            'id': 1,
            'text': '主题乐园',
            'img': 'https://img0.baidu.com/it/u=1029088037,1683085097&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
        },
        {
            code: '200',
            message: '请求宫格成功',
            'id': 2,
            'text': '电影票',
            'img': 'https://img2.baidu.com/it/u=3201151264,694288623&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'

        },
        {
            code: '200',
            message: '请求宫格成功',
            'id': 3,
            'text': '咖影院',
            'img': 'https://img0.baidu.com/it/u=2304044310,2587679105&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=509'

        },
        {
            code: '200',
            message: '请求宫格成功',
            'id': 4,
            'text': '通讯',
            'img': 'https://img2.baidu.com/it/u=124234147,3323040816&fm=253&fmt=auto&app=138&f=PNG?w=500&h=500'

        },
        {
            code: '200',
            message: '请求宫格成功',
            'id': 5,
            'text': '智能酒店',
            'img': 'https://img2.baidu.com/it/u=3898984313,1334529425&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'

        },


    ]
})

Mock.mock('/griddata', 'get', () => {


    return data
})


const data2 = Mock.mock({
    'data': [
        {
            code: '200',
            message: '请求宫格成功',
            'id': 1,
            'text': '咖档案',
            'img': 'https://img1.baidu.com/it/u=1058443694,1089541247&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
        },
        {
            code: '200',
            message: '请求宫格成功',
            'id': 2,
            'text': '服务',
            'img': 'https://img1.baidu.com/it/u=3037349002,4265288349&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'

        },
        {
            code: '200',
            message: '请求宫格成功',
            'id': 3,
            'text': '地图',
            'img': 'https://img2.baidu.com/it/u=1478417439,1604389292&fm=253&fmt=auto&app=138&f=PNG?w=500&h=500'

        },
        {
            code: '200',
            message: '请求宫格成功',
            'id': 4,
            'text': '日程',
            'img': 'https://img2.baidu.com/it/u=2795573234,1320329833&fm=253&fmt=auto&app=138&f=JPEG?w=256&h=256'

        },
        {
            code: '200',
            message: '请求宫格成功',
            'id': 5,
            'text': '客服',
            'img': 'https://img1.baidu.com/it/u=4258624785,1799352122&fm=253&fmt=auto&app=120&f=PNG?w=800&h=800'

        },
        {
            code: '200',
            message: '请求宫格成功',
            'id': 6,
            'text': '托运',
            'img': 'https://img0.baidu.com/it/u=1911715346,4249795042&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'

        },
        {
            code: '200',
            message: '请求宫格成功',
            'id': 7,
            'text': '幸运咖',
            'img': 'https://img0.baidu.com/it/u=3348474555,1769290978&fm=253&fmt=auto&app=138&f=JPG?w=600&h=400'

        },


    ]
})

Mock.mock('/griddata2', 'get', () => {


    return data2
})

const data3 = Mock.mock({
    'data': [
        {
            code: '200',
            message: '请求宫格成功',
            'id': 1,
            'text': '天气',
            'img': 'https://img1.baidu.com/it/u=879619355,1584411814&fm=253&fmt=auto?w=500&h=658'
        },
        {
            code: '200',
            message: '请求宫格成功',
            'id': 2,
            'text': '附近',
            'img': "https://img1.baidu.com/it/u=2179634119,1145643859&fm=253&fmt=auto&app=138&f=JPEG?w=403&h=500"
        },


    ]
})

Mock.mock('/griddata3', 'get', () => {


    return data3
})



const data4 = Mock.mock({
    'data': [
        {
            code: '200',
            message: '请求宫格成功',
            'id': 1,
            'text': '帮助',
            'img': 'https://img1.baidu.com/it/u=2935521437,1968742039&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
        },
        {
            code: '200',
            message: '请求宫格成功',
            'id': 2,
            'text': '须知',
            'img': 'https://img2.baidu.com/it/u=1422669855,2220057424&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
        },
        {
            code: '200',
            message: '请求宫格成功',
            'id': 3,
            'text': '安全',
            'img': 'https://img1.baidu.com/it/u=1028203303,4105207284&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=611'
        },
        {
            code: '200',
            message: '请求宫格成功',
            'id': 4,
            'text': '神秘功能',
            'img': 'https://img2.baidu.com/it/u=2325909121,2967791699&fm=253&fmt=auto&app=138&f=JPEG?w=480&h=270'
        },


    ]
})

Mock.mock('/griddata4', 'get', () => {


    return data4
})


const data5 = Mock.mock({
    'data': [
        {
            code: '200',
            message: '请求轮播图成功',
            'id': 1,
            'img': "https://img2.baidu.com/it/u=3021907995,4033010483&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=500"

        },
        {
            code: '200',
            message: '请求轮播图成功',
            'id': 2,
            'img': "https://img0.baidu.com/it/u=1153645661,2831880733&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=313",

        },
        {
            code: '200',
            message: '请求轮播图成功',
            'id': 3,
            'img': "https://img2.baidu.com/it/u=1682234550,3305410977&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500",

        },


    ]
})

Mock.mock('/assbanner', 'get', () => {


    return data5
})


const data6 = Mock.mock({
    'list': [
        {
            'id': 1,
            'img': 'https://img2.baidu.com/it/u=641648608,1953541675&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=667',
            'title': '北京野生动物园'
        },
        {
            'id': 2,
            'img': 'https://img0.baidu.com/it/u=3994373519,3289863164&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=667',
            'title': '天坛'
        },
        {
            'id': 3,
            'img': 'https://img1.baidu.com/it/u=1776820105,988172126&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=889',
            'title': '故宫'
        },
        {
            'id': 4,
            'img': 'https://img1.baidu.com/it/u=4049690610,3993989683&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=750',
            'title': '天安门'
        },
        {
            'id': 5,
            'img': 'https://img1.baidu.com/it/u=4123546912,2715241167&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=795',
            'title': '颐和园'
        },
        {
            'id': 6,
            'img': 'https://img0.baidu.com/it/u=1691926007,3906266128&fm=253&fmt=auto&app=138&f=JPEG?w=422&h=500',
            'title': '长城'
        },
        {
            'id': 7,
            'img': 'https://img0.baidu.com/it/u=2403732937,832576043&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
            'title': '不知道是哪'
        },
        {
            'id': 8,
            'img': 'https://img1.baidu.com/it/u=152422348,3876640085&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=753',
            'title': '不知道是哪'
        },
    ],

})


Mock.mock('/getsteplist', 'get', () => {


    return data6
})